﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PServiceBus.RemoteProxy {
    [AttributeUsage(AttributeTargets.Interface)]
    public class ESBProxyAttribute : Attribute {
        internal string Endpoint {get; private set;}
        internal string UserName { get; private set; }
        internal string Password { get; private set; }
        public ESBProxyAttribute() : this(null) { }
        public ESBProxyAttribute(string endpoint) : this(endpoint, null, null) { }
        public ESBProxyAttribute(string endpoint, string username, string password) {
            UserName = username ?? string.Empty;
            Password = password ?? string.Empty;
            Endpoint = endpoint ?? "net.tcp://localhost:8000/ESBGateway";
        }
    }
}
